import { OrderResolver } from './order.resolver';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { Order } from './models/order.entity';
import { OrderService } from './order.service';
import { ProductService } from '../product/product.service';
import { Product } from '../product/models/product.entity';
import { CardRecord } from '../cardRecord/models/cardRecord.entity';
import { CardRecordService } from '../cardRecord/cardRecord.service';
import { Organization } from '../organization/models/organization.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([Order, Organization, Product, CardRecord]),
  ],
  providers: [OrderService, OrderResolver, ProductService, CardRecordService],
  exports: [OrderService],
})
export class OrderModule {}
